package com.oraclejava.multimedia;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

public class MultimediaExActivity extends Activity {
	private MediaPlayerView view;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initialize();
        
    }
	private void initialize(){
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		view = new MediaPlayerView(this);
		setContentView(view);
	}
	@Override
	public void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
		view.stopSound();
	}
}